Skip to content

import defineConfig from vitest/config#320

Open
nicehatharry wants to merge 1 commit intorwieruch:masterfrom
nicehatharry:master
Open

import defineConfig from vitest/config#320
nicehatharry wants to merge 1 commit intorwieruch:masterfrom
nicehatharry:master

Conversation

@nicehatharry
Copy link

The defineConfig function from vite is not type aware of the 'test' parameter. Importing defineConfig from 'vitest/config' fixes.

The defineConfig function from vite is not type aware of the 'test' parameter. Importing defineConfig from 'vitest/config' fixes.
@jan-gebauer
Copy link

+1

I got stuck on this as well this morning. I ended up creating vitest.config.ts. I am not sure, which is better because Vitest touts the common config as a feature but VSCode does not offer an import of defineConfig from vitest/config. I suspect the real problem lies with Vite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants